package test02;

import java.io.File;

public class Test {
    public static void main(String[] args) {
        // 修改成你电脑的图片路径
        File source = new File("D:\\JAVA项目\\java-study\\ch01-thread\\src\\test02\\1.jpg");
        File destination = new File("D:\\JAVA项目\\java-study\\ch01-thread\\src\\test02\\2.jpg");

        User copyTask = new User(source, destination);
        Thread userThread = new Thread(copyTask);
        Thread progressThread = new Thread(new Shouhu(copyTask));

        progressThread.start(); // 先启动进度监视
        userThread.start(); // 启动拷贝任务
    }
}
